#ifndef _QY_SEESION_HANDLER
#define _QY_SEESION_HANDLER

#include "Thread.h"


namespace qy
{

class TCPChannel;

class SessionHandler : public Thread
{
public:
	SessionHandler(int sock, void (*callback)(SessionHandler*));
	virtual ~SessionHandler();

protected:
	int run();
	void afterRun();

private:
	TCPChannel *m_channel;
	void (*m_callback)(SessionHandler*);
};

}
#endif
